package 位运算;

public class leetcode136只出现一次的数字 {
	public static void main(String []args) {
		int arr[] = {5,2,3,2,3};
		System.out.println(solution(arr));
	}
		public static int solution(int arr[]) {
			int a =0;
			for(int i : arr) {
				a = a ^ i;
			}
			return a;
		}
}
